package model;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2023-07-19
 * Time: 11:45
 */
public class BlogDao {
    public void insert(Blog blog){
try {
    Connection connection = DBUtil.getConnection();
} catch (SQLException e) {
    e.printStackTrace();
}
    }
    //查询全部博客
    public List<Blog> selectAll(){

    }
    //指定id来查询博客
    public Blog selectOne(int blogId){

    }
    //指定id来删除博客
    public void delete(int blogId){

    }
}
